﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace RegOnline
{
    /// <summary>
    /// класс аргументов события "ошибка загрузки с сервера"
    /// </summary>
    public class ErrorEventArgs : EventArgs
    {
        private Type _type;

        private String msg;

        public String Msg
        {
            get { return msg; }
            set { msg = value; }
        }

        private Exception exc;

        public Exception Exc
        {
            get { return exc; }
            set { exc = value; }
        }

        public Type Type
        {
            get
            {
                return this._type;
            }
        }

        public ErrorEventArgs()
        {

        }

        public ErrorEventArgs(Type type)
        {
            this._type = type;
        }

        public ErrorEventArgs(Type type, String Message)
        {
            this._type = type;
            this.msg = Message;
        }

        public ErrorEventArgs(Type type, String Message, Exception E)
        {
            this._type = type;
            this.msg = Message;
            this.exc = E;
        }
    }
}
